<?php /*a:3:{s:56:"/www/wwwroot/mall/public/template/user/member/index.html";i:1628665139;s:64:"/www/wwwroot/mall/public/template/user/../index/public/mlay.html";i:1624501447;s:57:"/www/wwwroot/mall/public/template/user/public/header.html";i:1628825450;}*/ ?>
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="x-ua-compatible" content="ie=edge">
		<title>个人中心</title>
		<meta name="keywords" content="<?php echo config('app.web_site_keywords'); ?>">
		<meta name="description" content="<?php echo config('app.web_site_description'); ?>">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, shrink-to-fit=no, user-scalable=no">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		
		
		<!-- Icons -->
		<link rel="icon" href="/static/images/favicon.ico">
		<!-- END Icons -->
		
		<!-- Stylesheets -->
		<link rel="stylesheet" href="/static/libs/weui/css/weui.min.css">
		<link rel="stylesheet" href="/static/libs/weui/css/common.css?v=<?php echo config('app.asset_version'); ?>">
		<link rel="stylesheet" href="/static/css/font/iconfont.css?v=<?php echo config('app.asset_version'); ?>">
		<!-- END Stylesheets -->
		
<link rel="stylesheet" href="/template/static/css/public.css" />

	</head>
	<body id="<?php echo htmlentities(strtolower(app('request')->app())); ?>-<?php echo htmlentities(strtolower(app('request')->controller())); ?>-<?php echo htmlentities(strtolower(app('request')->action())); ?>">
		<!-- Page Container -->
		<div class="page" id="main">
			
<style>
	.heard-img {
		position: relative;
		background: url('/static/home/img/user_top.png') bottom center no-repeat;
		background-size: cover;
		height: 8rem;
	}

	.heard-img img {
		width: 3rem;
		border-radius: 50%;
		margin: 1.2rem 0.85rem 0.85rem 1.2rem;
		display: block;
		float: left;
		box-shadow: 0.2rem 0.2rem 0.2rem rgba(0,0,0,0.3);
	}
	
	.radius {
		margin: 0.6rem;
		border-radius: 0.3rem;
	}

	.heard-img h4 {
		font-weight: normal;
		line-height: 1.5rem;
		font-size: 1rem;
		color: #FFFFFF;
		margin: 1.2rem 0;
		display: block;
		float: left;
		width: 65%;
		/* text-shadow: 0.1rem 0.1rem 0.2rem rgba(0,0,0,0.4); */
	}
	.heard-img h4 p{
		font-size: 0.7rem;
		line-height: 1rem;
		color: #F2F2F2;
	}
	.heard-img h5{
		width: 100%;
		height: 3.5rem;
		float: left;
		text-align: center;
		color: #363636;
		line-height: 3.5rem;
		font-weight: normal;
		position: absolute;
		bottom: 0;
	}
	.heard-img h4 a, .heard-img h5 a{
		font-size: 2rem;
		color: #FFFFFF;
	}

	.weui-cell {
		padding: 0.6rem 0.5rem;
	}

	.weui-cell__hd i {
		margin: 0 0.5rem;
		font-size: 1rem;
	}
</style>
<!-- Header -->
<div class="heard-img">
	<a href="<?php echo url('user/member/index'); ?>"><img src="<?php echo htmlentities((isset($user['avatar_img']) && ($user['avatar_img'] !== '')?$user['avatar_img']:'')); ?>" /></a>
	<h4><?php echo htmlentities((isset($user['nickname']) && ($user['nickname'] !== '')?$user['nickname']:"未登录")); ?><a class="block fr" href="<?php echo url('user/member/userinfo'); ?>"><i class="ico ico-set-full"></i></a>
		<p>ID：<?php echo htmlentities((isset($user['id']) && ($user['id'] !== '')?$user['id']:"0")); ?></p>
		<p><?php echo htmlentities((isset($user['group']) && ($user['group'] !== '')?$user['group']:"注册用户")); ?></p>
		<p><?php echo htmlentities((isset($user['shop']) && ($user['shop'] !== '')?$user['shop']:"未开店")); ?></p>
	</h4>
	<?php if($user['auth'] == 1): ?>
	<h5 class=""><a class="ico ico-qrcode" href="<?php echo url('user/vip/index'); ?>"></a></h5>
	<?php endif; ?>
</div>
<!-- END Header -->

			
<div id="app">
	<div style="border-radius: 10px;margin: 20px 10px 10px 10px;background: #fff;">
		<div class="weui-flex ju_sb ai_center" style="font-size: 0.7rem;padding: 10px;">
			<div class="weui-flex__item" style="color: #333333;">订单管理</div>
			<div @click="click_all()" class="weui-flex__item tar" style="color: #bebebe;font-size: 0.65rem;">查看全部
				<img style="width: 0.6rem;height: 0.6rem;" src="/template/static/img/my/rightThearrow.png">
			</div>
		</div>
		<div class="weui-flex padding-tb-xs">
			<div class="weui-flex__item" @click="click_details(item.id)" style="text-align: center;" v-for="(item,index) in tab" :key="index">
				<img style="width: 1.15rem;height: 1.15rem;" v-cloak :src="item.img">
				<div style="font-size: 0.65rem;" v-cloak>{{item.text}}</div>
			</div>
		</div>
	</div>
	<div v-if="this.level>1" style="background: #fff;border-radius: 10px;margin: 10px;">
		<div class="weui-flex flex-row">
			<div @click="click_tab(index)" class="weui-flex__item flex4 tac margin-tb-xs" v-for="(item,index) in tab2" :key="index">
				<img style="width: 1.1rem;height: 1.1rem;" v-cloak :src="item.img">
				<div style="font-size: 0.65rem;" v-cloak>{{item.text}}</div>
			</div>
		</div>
	</div>
	<div v-else style="background: #fff;border-radius: 10px;margin: 10px;padding: 10px 0;">
		<div class="weui-flex">
			<div @click="click_tab2(index)" class="weui-flex__item flex4" style="text-align: center;flex: 0 0 25%;" v-for="(item,index) in tab3" :key="index">
				<img style="width: 1.1rem;height: 1.1rem;" v-cloak :src="item.img">
				<div style="font-size: 0.65rem;" v-cloak>{{item.text}}</div>
			</div>
		</div>
	</div>
</div>


		</div>
		<!-- END Page Container -->
		<!-- FOOT -->
		
		<!-- Copyright -->
		<div class="weui-footer padding-tb">
			<!-- 		<p class="weui-footer__links">
	<a href="javascript:void(0);" class="weui-footer__link">底部链接</a>
	</p> -->
			<p class="weui-footer__text"><?php echo config('app.web_site_copyright'); ?></p>
		</div>
		<!-- Copyright -->
		
		
		<!-- Footer -->
		<!-- 工具栏 -->
		<div class="footer"></div>
		<?php if(!(empty($nav['main_nav']) || (($nav['main_nav'] instanceof \think\Collection || $nav['main_nav'] instanceof \think\Paginator ) && $nav['main_nav']->isEmpty()))): ?>
		<nav class="bar-tab weui-flex">
			<?php if(is_array($nav['main_nav']) || $nav['main_nav'] instanceof \think\Collection || $nav['main_nav'] instanceof \think\Paginator): $i = 0; $__LIST__ = $nav['main_nav'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?>
			<a class="tab-item weui-flex__item<?php if(isset($active) && $active == $menu['rel']): ?> active<?php endif; ?>" href="<?php echo htmlentities($menu['url']); ?>">
				<span class="icoimg <?php echo htmlentities($menu['css']); if(isset($active) && $active == $menu['rel']): ?>-full<?php endif; ?>"></span>
				<span class="tab-label"><?php echo htmlentities($menu['title']); ?></span>
			</a>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</nav>
		<?php endif; ?>
		<!-- Footer -->
		

		
		<ul id="Fixed">
			<li id="goTop" class="ico ico-up hidden" title="去顶部"></li>
		</ul>
		
		<!-- END FOOT-->
		<div class="hidden">
			
			<?php echo config('app.web_site_statistics'); ?>
			
		</div>
		<!--js -->
		<script src="/static/libs/weui/js/jquery.min.js"></script>
		<script src="/static/libs/weui/js/weui.min.js"></script>
		<script src="/static/libs/weui/js/common.js?<?php echo config('app.asset_version'); ?>"></script>
		
		<?php if(!(empty($jssdk) || (($jssdk instanceof \think\Collection || $jssdk instanceof \think\Paginator ) && $jssdk->isEmpty()))): ?>
		<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
		<script>
			wx.config({
				debug: false,
				appId: '<?php echo htmlentities($jssdk['appid']); ?>',
				timestamp: '<?php echo htmlentities($jssdk['timestamp']); ?>',
				nonceStr: '<?php echo htmlentities($jssdk['noncestr']); ?>',
				signature: '<?php echo htmlentities($jssdk['signature']); ?>',
				jsApiList: [
					'updateAppMessageShareData',
					'updateTimelineShareData',
					'hideMenuItems',
					'showMenuItems',
					'closeWindow',
				],
				openTagList: ['wx-open-launch-weapp']
			});
			wx.ready(function() {
				wx.updateAppMessageShareData({
					title: "<?php echo htmlentities((isset($share['title']) && ($share['title'] !== '')?$share['title']:config('app.web_site_title'))); ?>", // 分享标题
					desc: "<?php echo htmlentities((isset($share['desc']) && ($share['desc'] !== '')?$share['desc']:config('app.web_site_slogan'))); ?>", // 分享描述
					link: "<?php echo htmlentities((isset($share['url']) && ($share['url'] !== '')?$share['url']:$jssdk['url'])); ?>", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
					imgUrl: "<?php echo htmlentities((isset($share['img']) && ($share['img'] !== '')?$share['img']:app('request')->scheme() . '://' .app('request')->host() .'/static/images/share.png')); ?>", // 分享图标
					success: function() {
						// 设置成功
					}
				});
				wx.updateTimelineShareData({
					title:  "<?php echo htmlentities((isset($share['title']) && ($share['title'] !== '')?$share['title']:config('app.web_site_title'))); ?>", // 分享标题
					link: "<?php echo htmlentities((isset($share['url']) && ($share['url'] !== '')?$share['url']:$jssdk['url'])); ?>", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
					imgUrl: "<?php echo htmlentities((isset($share['img']) && ($share['img'] !== '')?$share['img']:app('request')->scheme() . '://' .app('request')->host() .'/static/images/share.png')); ?>", // 分享图标
					success: function() {
						// 设置成功
					}
				});
				<?php if(!(empty($share['hide']) || (($share['hide'] instanceof \think\Collection || $share['hide'] instanceof \think\Paginator ) && $share['hide']->isEmpty()))): ?>
				wx.hideMenuItems({
					menuList: ['menuItem:copyUrl', 'menuItem:originPage', 'menuItem:readMode', 'menuItem:openWithQQBrowser',
						'menuItem:openWithSafari', 'menuItem:share:email', 'menuItem:favorite', 'menuItem:share:qq',
						'menuItem:share:weiboApp', 'menuItem:favorite', 'menuItem:share:QZone'] // 要隐藏的菜单项，只能隐藏“传播类”和“保护类”按钮，所有menu项见附录3
				});
				<?php endif; ?>
				wx.showMenuItems({
					menuList: ["menuItem:profile", "menuItem:addContact", ] // 要显示的菜单项，所有menu项见附录3
				});
			});
		</script>
		<?php endif; ?>
		
		
<!-- 引入vue.js文件使用vue开发 -->
<script src="/template/static/js/public/vue.min.js" type="text/javascript" charset="utf-8"></script>
<!-- vant -->
<script src="/template/static/js/public/vant-2.12.min.js" type="text/javascript" charset="utf-8"></script>
<!-- 接口统一管理 -->
<script src="/template/static/js/http/api.js" type="text/javascript" charset="utf-8"></script>
<!-- 当前页面独有js -->
<!-- <script src="/template/static/js/my.js?v=<?php echo time(); ?>" type="text/javascript" charset="utf-8"></script> -->
<!-- 引入axios请求库 -->
<script src="/template/static/js/http/axios.min.js" type="text/javascript"></script>
<!-- 再次封装axios 方便使用 -->
<script src="/template/static/js/http/http.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	var my = new Vue({
		el: "#app",
		data() {
			return {
				tab: [{
					id: 0,
					img: '../../template/static/img/my/To_be_paid.png',
					text: '未支付'
				}, {
					id: 1,
					img: '../../template/static/img/my/Drop_shipping.png',
					text: '待发货'
				}, {
					id: 2,
					img: '../../template/static/img/my/The_collecting_cargo.png',
					text: '待收货'
				},{
					id: 3,
					img: '../../template/static/img/my/complete.png',
					text: '已完成'
				},],
				tab2: [{
					img: '../../template/static/img/my/my_wallet.png',
					text: '我的钱包'
				}, {
					img: '../../template/static/img/my/my_promote.png',
					text: '我的推广'
				},{
					img: '../../template/static/img/my/commission4.png',
					text: '我的返佣'
				}, {
					img: '../../template/static/img/my/my_service.png',
					text: '联系客服'
				},{
					img: '../../template/static/img/my/my_xiaoxi.png',
					text: '我的消息'
				}],
				tab3: [{
					img: '../../template/static/img/my/my_wallet.png',
					text: '我的钱包'
				},{
					img: '../../template/static/img/my/my_service.png',
					text: '联系客服'
				},{
					img: '../../template/static/img/my/my_xiaoxi.png',
					text: '我的消息'
				}],
				level: <?php echo htmlentities((isset($user['level']) && ($user['level'] !== '')?$user['level']:"0")); ?>
			}
		},
		//计算属性
		computed: {},
		//监听属性
		watch: {},
		//钩子函数
		created() {
		},
		mounted() {

		},
		methods: {
			click_tab: function(index) {
				if (index === 0) {
					window.location.href = "<?php echo url('mall/user/vip/money'); ?>"
				} else if (index === 1) {
					window.location.href = "<?php echo url('user/vip/users'); ?>"
				}  else if (index === 2) {
					window.location.href = "<?php echo url('user/vip/rebate'); ?>"
				} else if (index === 3) {
					weui.confirm("<?php echo app_config('mall', 'phone'); ?>", {
					    title: '联系客服',
					    buttons: [{
					        label: '取消',
					        type: 'default',
					        onClick: function(){ console.log('no') }
					    }, {
					        label: '拨打',
					        type: 'primary',
					        onClick: function(){window.location.href = "tel:<?php echo app_config('mall', 'phone'); ?>"}
					    }]
					});
				} else if(index === 4) {
					window.location.href = "<?php echo url('user/member/message'); ?>"
				}
			},
			click_tab2: function(index) {
				console.log(index)
				if (index === 0) {
					window.location.href = "<?php echo url('mall/user/vip/money'); ?>"
				} else if (index === 1) {
					weui.confirm("<?php echo app_config('mall', 'phone'); ?>", {
						title: '联系客服',
						buttons: [{
							label: '取消',
							type: 'default',
							onClick: function(){ console.log('no') }
						}, {
							label: '拨打',
							type: 'primary',
							onClick: function(){window.location.href = "tel:<?php echo app_config('mall', 'phone'); ?>"}
						}]
					});
				} else if(index === 2) {
					window.location.href = "<?php echo url('user/member/message'); ?>"
				}
			},
			click_all() {
				window.location.href = "<?php echo url('mall/order/index'); ?>"
			},
			click_details(id) { //订单详情
				window.location.href = "<?php echo real_url('mall/order/index'); ?>/status/" + id
			}
		}
	});
	<?php if(!(empty($levelUp) || (($levelUp instanceof \think\Collection || $levelUp instanceof \think\Paginator ) && $levelUp->isEmpty()))): ?>
	weui.alert('恭喜你，团队<font color="red"><?php echo htmlentities((isset($levelUp['now']) && ($levelUp['now'] !== '')?$levelUp['now']:"市代")); ?></font>人数达到<font color="red"><?php echo htmlentities((isset($levelUp['all']) && ($levelUp['all'] !== '')?$levelUp['all']:"9")); ?></font>人， 其中直属<font color="red"><?php echo htmlentities((isset($levelUp['direct']) && ($levelUp['direct'] !== '')?$levelUp['direct']:"5")); ?></font>人，你的会员级别由<font color="red"><?php echo htmlentities((isset($levelUp['now']) && ($levelUp['now'] !== '')?$levelUp['now']:"市代")); ?></font>升级到了<font color="red"><?php echo htmlentities((isset($levelUp['up']) && ($levelUp['up'] !== '')?$levelUp['up']:"省代")); ?></font>！',
	{
	    title: '升级提醒',
		buttons: [{
			label: '确定',
			type: 'primary',
			onClick: function(){
				weui.toast('升级成功', 3000);
			}
		}]
	});
	<?php endif; ?>
</script>

	</body>
</html>
